package com.foreveross.dao;

import java.util.List;

import com.foreveross.vo.Express;
import com.foreveross.vo.Tenement;
import com.foreveross.vo.common.PageVo;
import com.foreveross.vo.common.ResultVo;

public interface ExpressDAO {
	
    public <T extends Object> void save(T entity) throws Exception;
	
	public <T> void remove(T entity) throws Exception;

	public Object findById(Class clazz,String id) throws Exception;
	
	public Object findByIntId(Class clazz,int id) throws Exception;
		
	public <T extends Object> T updateObject(T t) throws Exception;
	
	public List<Express> findExpressList(String express_no,String house_user_name,String name,String type,String status,String house_id,String telephone, 
			int pageIndex, int pageSize,String userId,String resCode) throws Exception;

	public long getExpressListCount(String express_no,String house_user_name,String name,String type,String status,String house_id,String telephone,String userId,String resCode) throws Exception;

	public PageVo<Express> findMyExpressList(String weixin,String type, String currentPage,
			String pageSize) throws Exception;
	
	public int findUntreatedTotal(String weixin, String type,
			String currentPage, String pageSize) throws Exception;

}
